package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by zhangjh on 2016/10/9.
 */
@Entity
@Table(name = "recommend")
@DynamicInsert
@DynamicUpdate
public class Recommend extends IDEntityMall {
    @Column(columnDefinition = "bigint(10) ")
    private Long mallId;
    @Column(columnDefinition = "bigint(20) comment '推荐商家'")
    private Long merchantId;
    @Column(columnDefinition = "varchar(50) comment '推荐标题'")
    private String title;

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "Recommend{" +
                "mallId=" + mallId +
                ", merchantId=" + merchantId +
                ", id=" + id +
                ", title='" + title + '\'' +
                ", dateCreated=" + dateCreated +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
